var window = {
}
var document = {
    referrer: "http://www.baidu.com",
    // cookie:"msToken=wnFwZYDPCsW2hurVNobxw7Jp0XWtbIRT-yoiLJRiPBaG2i-Qthh1aKPdjeLg2q702yOuB_7Kjqzhy20V1FlmUlpO8VmyhtVoRcV8GleV; __ac_signature=_02B4Z6wo00f01sn5NLwAAIDAR9EeF1Eb517J2TAAANRy3b; ttcid=5b07a815ca0a4d5e98e60f8df913201721; s_v_web_id=verify_luzgejnm_OAYtUg5d_ot7K_4ISD_BW9v_IGoh5l0SH6W9; _ga=GA1.1.943551473.1713094785; local_city_cache=%E7%90%BC%E6%B5%B7; csrftoken=b1302b20415d94a04b36168b7cc6ed1a; tt_scid=DkSvUlwNOAwypdx6lA6a3UxQVhJJy2SpgmQIys-kdvZB-H2.-3WvGOt8QKHYQkUQ7949; _ga_QEHZPBE5HH=GS1.1.1713453981.4.0.1713453981.0.0.0"
}
var location = {
    href : 'https://www.toutiao.com/',
    protocol:''
}
window = this; // 设置顶级作用域
Window = function Window(){
}

Window.prototype.alert = () => {
    console.log(1);
}
// 指定类型
Object.setPrototypeOf(window, Window.prototype)

function Document() {
}
Object.setPrototypeOf(document, Document.prototype)

function Location() {
    
}

Object.setPrototypeOf(location,Location.prototype)



var navigator = {
    userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"
}

function Navigator() {
    
}

Object.setPrototypeOf(navigator, Navigator.prototype)

